<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix='c' uri="http://java.sun.com/jsp/jstl/core" %>  
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="syscode" uri="/syscode" %>
<div id="formPageSwap">
<form id="updateNewsFormData" name="updateNewsFormData" isCheck="true" action="com.jy.modules.cims.common.controller.TCMmCreditDetailController">
<input type="hidden" class="text" disabled = "disabled" id="dtoid" name="id"  maxLength="17" value="${dto.id}" />
 <table id=viewNewsTableId" class="formTableSwap" border="0" align="center" cellpadding="0" cellspacing="1" >
<tr>
  <th> 债权转让编号 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtotransferId" disabled="disabled"   maxLength="199" value="${dto.transferId}" />
  </td>
  <th> 债权编号 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtocreditCode" disabled="disabled"   maxLength="31" value="${dto.creditCode}" />
  </td>
  <th> 合作机构编号：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtocooperorgCode" name="cooperorgCode"  maxLength="31" value="${dto.cooperorgCode}" />
  </td>
</tr>
<tr>
  <th> 所属包编号 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtopackageNum" name="packageNum"  maxLength="31" value="${dto.packageNum}" />
  </td>
  <th> 债权状态 ：</th>
  <td > 
  <syscode:dictionary name="creditorStatus"  defaultValue="${dto.creditorStatus}" codeType="creditorStatus" id="dtocreditorStatus"	className="text"	type="select"/>
  </td>
  <th> 还款方式 ：</th>
  <td > 
<syscode:dictionary name="repayType"  defaultValue="${dto.repayType}" codeType="CM_REPAYMENTWAY" id="dtorepayType"	className="text"	type="select"/>
   </td>
</tr>
<tr>
  <th> 转让债权价值 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtomakeCreditorValue" name="makeCreditorValue"  maxLength="17" value="${dto.makeCreditorValue}" />
  </td>
  <th> 本次转让债权价 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtothisMakeCreditorValue" name="thisMakeCreditorValue"   maxLength="17" value="${dto.thisMakeCreditorValue}" />
  </td>
   <th> 当前债权价值 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtothisCreditorValue" name="thisCreditorValue"  maxLength="17" value="${dto.thisCreditorValue}" />
  </td>
 
 
</tr>

<tr>
 <th> 交割日期 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtodeliverDate" name="deliverDate"   maxLength="10" value="<fmt:formatDate  value="${dto.deliverDate}" type="both" pattern="yyyy-MM-dd " />"/>
  
  </td>
  <th> 还款起始日期 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtorepayStartDate" name="repayStartDate"   maxLength="10" value="<fmt:formatDate  value="${dto.repayStartDate}" type="both" pattern="yyyy-MM-dd " />"/>
  
  </td>
  <th> 还款结束日期 ：</th>
  <td > 
   <input type="text" class="text" disabled = "disabled" id="dtorepayEntDate"  name="repayEntDate"  maxLength="10" value="<fmt:formatDate  value="${dto.repayEntDate}" type="both" pattern="yyyy-MM-dd " />"/>
  
  </td>
</tr>
<tr>
  <th> 本期还款金额 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtothisRepaySum" name="thisRepaySum"   maxLength="17" value="${dto.thisRepaySum}" />
  </td>
  <th> 还款期数 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtorepayPeriod" name="repayPeriod"   maxLength="17" value="${dto.repayPeriod}" />
  </td>
  <th> 剩余还款期数 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoresidueRepayPeriod" name="residueRepayPeriod"   maxLength="17" value="${dto.residueRepayPeriod}" />
  </td>
</tr>
<tr>
  <th> 预计债权收益率 ：</th>
  <td > 
  <%-- <input type="text" class="text" disabled = "disabled" id="dtoplanCreditorRield" name="planCreditorRield"   maxLength="30" value='<fmt:formatNumber type="number" value="${dto.planCreditorRield*100}" maxFractionDigits="2"/>%' /> --%>
  <input type="text" class="text" disabled = "disabled" id="dtoplanCreditorRield" name="planCreditorRield"   maxLength="30" value="${dto.planCreditorRield}" />
  </td>
  <th> 初始放款日期 ：</th>
  <td > 
   <input type="text" class="text" disabled = "disabled" id="dtoinitialLoanDate" name="initialLoanDate"  maxLength="10" value="<fmt:formatDate  value="${dto.initialLoanDate}" type="both" pattern="yyyy-MM-dd " />"/>
  </td>
  <th> 月利率 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtomonthlyRate" name="monthlyRate"  maxLength="30" value="${dto.loanMonthlyinterest}" />
  </td>
</tr>
<tr>
  <th> 产品类型 ：</th>
  <td > 
  <syscode:dictionary   name="productType" codeType="product_type" id="dtoproductType"	
      defaultValue="${dto.productType}" className="text" type="select"/>
  </td>
  <th> 初始债权价值 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoinitialCreditorValue" name="initialCreditorValue"  maxLength="17" value="${dto.initialCreditorValue}" />
  </td>
 <th> 借款用途 ：</th>
  <td ><syscode:dictionary   name="borrowerUse" codeType="LOANPURPOSE" id="borrowerUse"	
      defaultValue="${dto.borrowerUse}" className="text" type="select"/></td>
</tr>

<tr>
  <th> 服务费 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoserviceCharge" name="serviceCharge"   maxLength="17" value="${dto.serviceCharge}" />
  </td>
  <th> 担保费 ：</th>
  <td > 
   <input type="text" class="text" disabled = "disabled" id="dtoguaranteeFee" name="guaranteeFee"   maxLength="17" value="${dto.guaranteeFee}"/>
  </td>
  <th> 保证金 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoguaranteeFee" name="cautionMoney"   maxLength="17" value="${dto.cautionMoney}" />
  </td>
</tr>

<tr>
  <th> 债权交互状态 ：</th>
  <td > 
  <syscode:dictionary   name="creditEachStatus" codeType="LOAN_EACH_STATUS" id="dtocreditEachStatus"	
      defaultValue="${dto.creditEachStatus}" className="text" type="select"/>
  </td>
 <th> 核心债权状态：</th>
  <td > 
  <syscode:dictionary  name="coreCreditStatus" codeType="coreCreditorStatus" id="dtocoreCreditStatus"	
      defaultValue="${dto.coreCreditStatus}" className="text" type="select"/>
  </td>
   <th> 账单日 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtobillDate" name="billDate"  value="${dto.billDate}" />
  </td>
</tr>
<tr>
   <th> 协议编号 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoagreementCode" name="agreementCode"  value="${dto.agreementCode}" />
  </td>
  <th> 合同金额 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtocontractSum" name="contractSum"   maxLength="17" value="${dto.contractSum}" />
  </td>
   <th> 放款金额 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoloanSum" name="loanSum"  maxLength="17" value="${dto.loanSum}" />
  </td>
</tr>
<tr>
  <th> 借款人身份证号 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoborrowerIdNumber" name="borrowerIdNumber"  maxLength="31" value="${dto.borrowerIdNumber}" />
  </td>
  <th> 借款人姓名 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoborrowerName" name="borrowerName"  maxLength="10" value="${dto.borrowerName}" />
  </td>
  <th> 需支付对价 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtogiveValue" name="giveValue"  maxLength="17" value="${dto.giveValue}" />
  </td>
</tr>
<tr>
  <th> 贷款产品代码 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoloanProductCode" name="loanProductCode"  maxLength="19" value="${dto.loanProductCode}" />
  </td>
  <th> 贷款产品名称 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoloanProductName" name="loanProductName"  maxLength="33" value="${dto.loanProductName}" />
  </td>
   <th> 贷款产品月利率 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoloanMonthlyinterest" name="loanMonthlyinterest"  maxLength="29" value="${dto.loanMonthlyinterest}" />
  </td>
</tr>
<tr>
  <th> 贷款人客户编号 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtoloanUserId" name="loanUserId"  maxLength="199" value="${dto.loanUserId}" />
  </td>
  <th> 合约编号 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtocontractCode" name="contractCode"  maxLength="31" value="${dto.contractCode}" />
  </td>
  <th> 放款行支行名称 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtobankBranchName" name="bankBranchName"  maxLength="66" value="${dto.bankBranchName}" />
  </td>
</tr>
<tr>
  <th> 还款账号 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtorepayAcctNo" name="repayAcctNo" maxLength="99" value="${dto.repayAcctNo}" />
  </td>
  <th> 还款账户名称 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtorepayAcctName" name="repayAcctName"  maxLength="33" value="${dto.repayAcctName}" />
  </td>
  <th> 还款行代码 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtorepayBankCode" name="repayBankCode"  maxLength="99" value="${dto.repayBankCode}" />
  </td>
</tr>

<tr>
  <th> 债权来源 ：</th>
  <td > 
  <syscode:dictionary name="creditSource"  defaultValue="${dto.creditSource}" codeType="CREDIT_SOURCE" id="dtocreditSource"	className="text"	type="select"/>
  </td>
  <th> 赎回状态 ：</th>
  <td colspan="4"> 
  <input type="text" class="text" disabled = "disabled" id="dtoredemptionStatus" name="redemptionStatus"  maxLength="99" value="${dto.redemptionStatus}" />
  </td>
</tr>

<tr id="bizDate">
  <th> 结清日期 ：</th>
  <td > 
  <input type="text" class="text" disabled = "disabled" id="dtobizDate" name="bizDate"  maxLength="10"
      value="<fmt:formatDate  value="${dto.bizDate}" type="both" pattern="yyyy-MM-dd " />"/>
  </td>
  
  <th> </th>
  <td> 
  </td>
  
  <th> </th>
  <td > 
  </td>
</tr>

  </table>

<!-- 保存 关闭 按钮 在 查询页面进行控制   redemption_status-->  
</form>

</div>



<script type="text/javascript">
   $(document).ready(function(){
   		checkedInit();   		
   		$("#dtocreditorStatus").attr("disabled", "disabled");
   		$("#dtorepayType").attr("disabled", "disabled");
   		$("#dtoproductType").attr("disabled", "disabled");
   		$("#borrowerUse").attr("disabled", "disabled");
   		$("#dtocreditEachStatus").attr("disabled", "disabled");
   		$("#dtocoreCreditStatus").attr("disabled", "disabled");
   		$("#dtocreditSource").attr("disabled", "disabled");
   		$("#dtoredemptionStatus").attr("disabled", "disabled");
   		var coreCreditStatus = $("#dtocoreCreditStatus").val();
   		if(coreCreditStatus==95 || coreCreditStatus==96 || coreCreditStatus==88 || coreCreditStatus==89 || coreCreditStatus==90){
   			$("#bizDate").show();
   		}else{
   			$("#bizDate").hide();
   		}
   });
   
 
</script>
  